var logger = exports;
logger.debugLevel = 'error';
logger.log = function(level, message){
	var levels = ['error', 'warn', 'info'];
	if(levels.indexOf(level) >= levels.indexOf(logger.debugLevel)){
		if(typeof message !== 'string'){
			message = JSON.stringify(message);
		};
	var timestamp = new Date().toUTCString();
	console.log('[' + timestamp + ']' + ' ' + level + ': ' + message);
	}
}
